<template>
  <div class="son">
    <h4>右侧</h4>
    <p>{{ rightMsg }}</p>
  </div>
</template>

<script>
// import bus from "../eventBus/index.js";
export default {
  data() {
    return {
      rightMsg: "",
    };
  },

  created() {
    $bus.$on("Right", (data) => {
      this.rightMsg = data;
    });
  },
};
</script>

<style>
.son {
  width: 300px;
  height: 300px;
  border: 1px solid #000;
}
</style>